Image Types

Bit works internally in RGB space, which is split into packed pixel representation and color index (CI) representation depending on the input image. Type conversions between packed pixel and CI are typically transparant and need no user interation. Grayscale images can exist either in packed pixel representation or CI representation. Black & White images, however, only exist in CI format.

RGB primaries are currently represented by unsigned char and consequently only 8bits of resolution. However, direct use of unsigned char is strongly discouraged, instead, use the new type pc_t for primary color varaibles and resolution of which can be determined form PCBITS and PCMAX.



Subsections